import account from '@/api/account'
import order from '@/api/order'
import product from '@/api/product'
import item from '@/api/item'
import cart from '@/api/cart'
import search from '@/api/search'
import talk from '@/api/talk'

export default (context, inject) => {
    let repositories = {
        account: account(context.$axios),
        order: order(context.$axios),
        product: product(context.$axios),
        item: item(context.$axios),
        cart: cart(context.$axios),
        search: search(context.$axios),
        talk: talk(context.$axios)
    }

    inject('api', repositories)
}